public class Test {
    public static void main(String[] args) {
        System.out.println("pi");
        System.out.println("?");

        System.out.println(quickPower(2, 100, 10000));
    }

    public static int quickPower(int a, int b, int mod) {
        a = a % mod;
        int ans = 1;
        while (b > 0) {
            if ((b & 1) == 1) ans = ans * a % mod;
            a = a * a % mod;
            b >>= 1;
        }
        return ans % mod;
    }
}
